package com.srxz.mobilepharmacy.controller;

import com.srxz.mobilepharmacy.service.UserInfoService;
import com.srxz.mobilepharmacy.util.back.BackMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigInteger;

@RestController
@RequestMapping("/mphs/userinfo")
public class UserInfoController {
    @Autowired
    private UserInfoService userInfoService;

    /**
     * 通过机构编号 获取机构下发药人员列表
     * @param aid 机构编号
     * @return
     */
    @GetMapping("/findbyhosp")
    public BackMessage findUserInfoByHosp(BigInteger aid){
        return userInfoService.findUserInfoByHosp(aid);
    }
}
